// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 登录接口 POST */
export async function login(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<UserData.LoginResult>>('/user/login', {
    method: 'POST',
    data: options || {},
  });
}

/** 登出接口 POST*/
export async function outLogin(options?: { [key: string]: any }) {
  return request<Record<string, any>>('/user/outLogin', {
    method: 'POST',
    ...(options || {}),
  });
}

/** 获取当前的用户 GET  */
export async function queryCurrentUser(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<UserData.Account>>('/user/current', {
    method: 'GET',
    ...(options || {}),
  });
}


